package SmartHome.handlers;

public class VoiceHandler extends Handler {
    private Handler nextHandler;

    @Override
    public void setNextHandler(Handler handler) {
        this.nextHandler = handler;
    }

    @Override
    public void handleRequest(String request) {
        System.out.println("VoiceHandler: 处理语音指令-->" + request);
        if (nextHandler!= null) {
            nextHandler.handleRequest(request);
        }
    }

}
